package com.example.field.field_common.mapper;

import com.example.field.field_common.entity.LoginData;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface LoginRegisterMapper {

    /**
     * 登录
     */
    @Select("SELECT * from logindata "+
            "WHERE username = #{username} AND password = #{password}")
    LoginData login(@Param("username")String username, @Param("password")String password);

}
